<?php
/** [广告表数据层视图模型]
 * @Author: 976123967@qq.com
 * @Date:   2015-01-16 11:33:22
 * @Last Modified by:   chenli
 * @Last Modified time: 2015-03-05 23:40:41
 */
class AdViewModel extends ViewModel{

	protected $tableName='Ad';

	public $viewFields  = array(
		'ad'=>array(
			'*',
			'_type'=>'INNER',
		),
		'user'=>array(
			'username','uid',
			'_type'=>'INNER',
			'_on' =>'user.uid=ad.user_uid',
		),
		'position'=>array(
			'psid','position_name',
			'_type'=>'INNER',
			'_on' =>'position.psid=ad.position_psid',
		),
	);

	

}